package com.sky.mapper.common;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishFlavorMapper {
    void batchSave(List<DishFlavor> flavors);

    void deleteByDishids(List<Long> ids);

    @Delete("delete from dish_flavor where dish_id=#{dishId}")
    void deleteByDishid(Long dishId);

    @Select("select * from dish_flavor where dish_id=#{id}")
    List<DishFlavor> getByDishId(Long id);
}
